package cn.dm.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 当调用者不可用时，直接调用容错处理的方法返回值
 */
@FeignClient(name = "demo-user-provider",fallback = UserFallBackClient.class)
public interface UserFeignClient {
    @PostMapping("/checkUser")
    boolean checkUser(@RequestParam String phone,@RequestParam String passWord,@RequestParam Integer count)throws Exception;
}
